<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <%@ include file="/commons/basejs.jsp" %>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>标签管理</title>
    <script type="text/javascript">

    </script>
</head>
<body>
<script type="text/javascript">
    $(function() {
        $('#configManageAddForm').form({
            url : '${path }/configManage/add.do',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
                    parent.$.modalDialog.handler.dialog('close');
                } else {
                    var form = $('#configManageAddForm');
                    parent.$.messager.alert('错误', eval(result.msg), 'error');
                }
            }
        });
    });
</script>
<div class="easyui-layout" data-options="fit:true,border:false" >
    <div data-options="region:'center',border:false" style="overflow: hidden;padding: 3px;" >
        <form id="configManageAddForm" method="post">
            <table class="grid">
                <tr>
                    <td>分类</td>
                    <td><input id="configCategoryId" name="configCategoryId"  value="请选择" class="easyui-combobox" data-options="width:140,height:29,editable:false,panelHeight:'auto',valueField:'id',textField:'name',url:'${path }/configManage/findConfigCategory.do'"/></td>
                </tr>
                <tr>
                    <td>名称</td>
                    <td><input name="des" type="text" placeholder="请输入名称" class="easyui-validatebox span2"  value=""></td>
                </tr>
                <tr>
                    <td>key</td>
                    <td><input name="k" type="text" placeholder="请输入key" class="easyui-validatebox span2" data-options="required:true" value=""></td>
                </tr>
                  <tr>
                    <td>value</td>
                    <td><input name="v" type="text" placeholder="请输入value" class="easyui-validatebox span2" data-options="required:true" value=""></td>
                </tr>


                <tr>
                    <td>状态</td>
                    <td >
                        <select name="status" class="easyui-combobox" data-options="width:140,height:29,editable:false,panelHeight:'auto'">
                            <option value="1">启用</option>
                            <option value="0">停用</option>
                        </select>
                    </td>
                </tr>

            </table>
        </form>
    </div>
</div>
</body>
</html>